
module.exports = {
  chainWebpack: config => {
      config
      .plugin('html')
      .tap(args => {
          args[0].title = '宠物便捷服务管理平台'
          return args
      })
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://192.168.0.172:29131/device-manage',
        pathRewrite: {
          '^/api': ''
        }
      },
      '/wr': {
        target: 'http://localhost:7001',
        pathRewrite: {
          '^/wr': ''
        }
      },
    }
  }
}